package com.koron.order.repair.service;

import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.repair.bean.entity.RepairItemPo;
import com.koron.order.repair.bean.vo.RepairItemVo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (RepairItem)表服务接口
 *
 * @author zhouj
 * @since 2021-09-23 15:53:22
 */
public interface RepairItemService extends CommonService {

    int insert(SessionFactory factory, RepairItemPo repairItem);

    int update(SessionFactory factory, RepairItemPo repairItem);

    int deleteById(SessionFactory factory, String id);

    RepairItemPo queryById(SessionFactory factory, String id);

    List<RepairItemPo> queryList(SessionFactory factory, RepairItemPo repairItem);

    List<RepairItemVo> queryByEquipmentId(SessionFactory factory, String orderId, String repairEquipmentId);

    int insertBatch(SessionFactory factory, List<RepairItemPo> repairItems);
}
